﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using YitWeb.Common;

namespace YitWeb.SysUsers
{
    [ApiController]
    [Route("sysuser")]
    public class SysUserController: ControllerBase
    {

        [HttpGet]
        public List<SysUser> GetSysUsers()
        {
            var userDb = Db.Create<SysUserDb>();

            return userDb.List(null);
        }
    }
}
